package org.example.entity.bonus;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.example.entity.BaseEntity;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_bonus")
public class BonusEntity extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 奖励信息
     */
    private String bonus;

    /**
     * 类型1站内跳转,2链接
     */
    private Integer type;

    /**
     * 奖励有效期
     */
    private LocalDateTime validityDate;

    /**
     * 奖励类别
     */
    private String bonusCate;
}
